/*
 * @Author: 杨超
 * @Date: 2021-08-03 13:54:00
 * @LastEditTime: 2021-09-26 17:02:34
 * @LastEditors: 杨超
 * @Description: 
 */
import CommonApi from './common'

// 养护实施-养护工程
class MaintenanceProjectApi extends CommonApi {
    constructor() {
        super()
        this.scope = '/maintProject'
    }

    // 获取设施列表
    getFacilityList(data) {
        const path = this.resolvePath('/facilityList')
        return this.post(path, data)
    }

    // 获取可用的计划信息（所属年月）
    getEnablePlan(data) {
        const path = this.resolvePath('/enablePlan')
        return this.post(path, data)
    }

    // 获取当前月度下的项目二级列表
    getRelatedProject(data) {
        const path = this.resolvePath('/relatedProject')
        return this.post(path, data)
    }

    // 养护工程上报到HDS
    report(data) {
        const path = this.resolvePath('/reportProject')
        return this.post(path, data)
    }
    // 养护工程-完工核实
    verify(data) {
        const path = this.resolvePath('/verify')
        return this.post(path, data)
    }
}

export default MaintenanceProjectApi
